import java.util.Scanner;

public class Ex2_7{
	public static void main(String[] args){
		System.out.print("Enter the number of minutes: ");
		Scanner input = new Scanner(System.in);
		long minutes = input.nextLong();
		long totalDays = minutes / 60 / 24;
		long days = totalDays % 365;
		long years = totalDays / 365;
		System.out.println(minutes + " minutes is approximately " +
			years + " and " + days + ".");
}
